package com.lj.universalframework.http


import com.lj.universalframework.base.ResponseEntity
import retrofit2.http.*

/**
 * <p>文件名：RetrofitService
 * <p>创建者：LJ
 * <p>创建日期：2020\7\14 0014 14:20
 * <p>描述： 接口集合类
 */
interface RetrofitService {

    //短信验证码接
    @FormUrlEncoded
    @POST("/api-user/user/sendSmsCode/sb")
    suspend fun sendSmsCode(
        @Field("telephone") telephone: String,
        @Field("sendType") skip: String = "1"
    ): ResponseEntity<String>

    //登录
    @FormUrlEncoded
    @POST("/api-technician/technician/login")
    suspend fun logIn(
        @Field("telephone") telephone: String,
        @Field("password") password: String,
        @Field("loginDevice") deviceToken: String = "1",
        @Field("deviceToken") loginDevice: String = ""
    ): ResponseEntity<String>

    @GET("Girl/type/Girl/page/1/count/10")
    suspend fun getOrderByPhone(): ResponseEntity<String>

    @GET("")
    suspend fun newLessonBoxRenew(@Url url: String = "http://apk.dawei.art/dwart/system/campus/newLessonBoxRenew"): ResponseEntity<String>
}